Bugfixes regarding show/hide of annotations and selection widget