changed reload functionality to wait