changed controller.__initclass__ to __init_class__ and forced calling of base classes methods