added auto refresh to make table render properly