gui refactoring. adjustments to process/exception handling