retain cursor value on click