add hide frame/object when hide modal