implemented menu functions