Added refresh funtionality