fix a few bugs by reloading the page on log out