added some vars and an ajax post request