now it seems to be working as expected - just the right elements are hidden.