creating menu during navigation