return to viewbefore registering