Changed click event to mousedown