Added refresh functionality for the tables.