Refactor MainCtrl to BaseCtrl. Make MainCtrl + FavoritesCtrl extend BaseCtrl