Moved code methods to controller