make favouritescontroller extend a base controller