Add css and sort function for the table