More main window coding

Implemented more coding, the directory path change