Removed namespace in mainwindow for pattern display