add ajax fucntionnality + fix bug with request.env