add init method in BaseController