bugfixes in category tree and image popup window