refactoring functionality out of current_page
organizing url mappings