AUTO-861 adding confirm leave page warning when autoposter form is popul...

Fix AUTO-861