Factored editing page and creation page into single template