Added ajax call to update the table

Still needs to be finished