menu() updated to reduce RAM footprint