fixed menu function