refactoring my controllers to ES6