fix some bugs

- project setting bug
- visible mainwindow at lunch