Remove mouse variable using cursor variable for both cursor and mouse tracking