Added warning message if user tries to leave/reload the page while
synching still in progress