implement ajax for new questions and answers