added confirm on leave page