Implemented the refresh action