This whole helper could be improved if it rendered a partial as opposed to construction an HTML string like this.