How can I make a part of the page or the page itself refresh without any of that flickering so it refreshes smoothly?