admin view and refactored code in forms and tabs