added id and title classes to ajax