Added "NewLayer" dialog. Fixed view.