removed duplicate menu function