action implmentation moved from controller to actions in controller