fixing menu show/hide code