changes to modal plugin