implemented menu state