Added mouse pointer functionality