changed BaseController class to SiteController