theme dependency for loading plugins centralized, moving admin functions to admin class