close #7: Refactored code and implemented generic refresh method