Add sound and code to mouse event function