add a register controller