add refresh method to model