Add visibleWhen to menu