removed some waitForIdle, that might lead to problems
fixed a hiding effect