added click functionality to table, need to add back button or something though