set ajax on subjects and answers