creates menu from array