syncing of current editing position with preview location