setup register view.