prevent double click on menu
hide messages div properly