cleaned up component_pages controller