add refresh method