cleanup and ajax post