targeting the right elements in the ajax success functions