implementing ajax export
functions cleanup
finalizing export words