Added sorting and filtering for the tables.