synchonizing with html file