refactor some controller actions to model