make sure the panel gets hidden