changed some "click" to mousedown