Adding refresh method