Created templated for mouse tracking