changed view.cpp to include view.h