started seperation of view and control