changed the way that the example is shown

this is now done independent of the submit button