modified the ajax call and added in a partial to make it flow better