hide "tracing" menu where not relevant
remove double 'open' and 'search' menu items