Updated html service and adding new logging functionality for local writing