added main controller and made all remaining controllers to inherit from this one