revamped routes, moved all actions to pages controller