updating cursor to pointer