bugfix - page refresh was not working