condensing code in admin interface
condensing code for profile settings