Hide modal when reloading.