insert modal and create directory