fixed a bug that show&hide, fixed a resize event, modal