change mouseup event to click event