exception handling

UI and exception handling.