[IMP]set the cookie management and improve the dialog