fixing menu visibility