Added admin check before registering admin actions
Changed initializing using action for plugin instance