add and modify modal plugin.