various bugfixes in GUI