conditional menu logic added - first pass