add detecting mouse interaction on a object