factor out old admin code (gwt based code)