added update interval and loading tree from database into html