Fix bad action hook syntax
Consolidate admin functions to admin class.