add bootstrap modal dialog nodes if segment has modal flag