Refactor attribute names for search from view to controller