add refresh handler