reorganizing methods inside controllers