adding mouse functions