finished ui; added simple error handling for dialogs;