moved parts of the voting page creation to functions; use request data to go back from preview page