add hover tips for shift-click
improve clear history logic