Removed comments around refresh function and moved the clearing ability of it inside the success