changing preview text after documents switch