Code library, which shows how to show/hide menu items