Fixes #15, logic to prevent crashing on multiple presses of the refresh button