page_localization controller refactoring