corrected css template helper method