added menu to loop, so it shows after every query