Added proper page reloading