Moved maybeRender() to Modal