fixed issue with reloading page