Added error dialog in gui.py