add register example with view