added some ajax and jquery