refactor rails controllers to inherit from angular_controller