add mouse up and down function