added dropdown box for dom or regex