adding conditional menu