redirect when update or adddigital and api