adding mouse interaction