implemented menu 'exit' feature