add reloadPage functionality