updated templates to display powers properly