moves non-page methods to controllers.py