Rearranged elements in template