made view and controller compatable