put in send data before people leave page