changed refresh quote function