improved exception handling in gui classes