start of controller methods refactoring