Move base controller to framework