Clean up html generation