improve html for homepage templates