fixed a bug in  my code that showed some parts of my other page that I don't want to show when the page refreshes