Moved action method to controller