rename page end template, cleanup whitespace