Switching between tabs with keyboard shortcuts doesn't always work. Closing sometimes causes the program to crash (much mystery). MainWindow doesn't save size on close