make it possible to refresh immediately by pressing enter