Added refresh functinality