auto close alerts and fixed the last step of reg flow route