restore confirm class, fix modal hide event