converted admin_edit_preferences to CBV