refresh page and flush log implemented