register view and form working