adding mouse listener