remove unnecessary menu elements