improving menu functionality