fixed page reloading issue