sets up a register page