prevent multiple refreshes