added extra helper method to BaseController
use BaseController