admin class code for class-based UI plugin