refactored html templating and rendering