refractored controller static_page