html watcher reload
refactor