Remove refreshing when hiding the modal