fix hiding of views