added tracking code for mouse flow