Implemented better autohide.