refactoring admin.jsp to mvc code