added events mouseup and mousedown
updated