add generated code standalone modal popup back in, as it's not unused (as I thought)