Adding refresh to ui