Adding view features for window handling and c++mode