add cursor centering on focus