updated register view and added return button