Added styling and data sorting for tables