added __initclass__ and callbacks to core controller