add auto refresh browser when buffer write