creating modal on the fly if el not supplied