Migrate controllers to angular classy