fixing the handle for register view and the first step in main view.