created new classes switching views does not work