Added dynamic table refreshing