Added handler for mouseup