Adjusted menu widget configuration logic