Updated modal plugin