connecting core mouse events