moved business logic for year separation from controller to model