getting rid of class inheritance in views