factored common stuff in percentageValue gsp file

could not get rid of the 2 templates because of the link being different, but factored common stuff in another template