code cleanups for better html rendering
beautified