replace click with mousedown event for better perceived performance