refactor controllers, pdf schedule import, password encryption