Added refresh event listener