add autohide menu functions
fix bug : menu appear when cursor goes above title bar