Crude refresh functinality added
cleaned up