Passing through the menu width for the before callbacks