fixed the occasional crash when displaying an error dialog
lies. now its fixed
cleaned up this POS gui a bit