added support for page reload