adds avatar and avatar_cache to app controller