factorize status_page creation