move currency formatting into template