some fixes when reloading the page in another context, added reset method