fixed menu functionality