adding modal code