Fixed z-order in css, so that menu is now not accessible when a modal dialog is open.