handling admin view and admin controller