Wait for green confirmation message before leaving page