applying ajax to project

post and destroy data without rendering the entire layout