added angular functionality to be able to populate the table as well as sort it by different columns