- Fully working table refresh code