Added mouse up and down functions to module xutil