made sure the table refreshes after an update