Displaying the correct button and messages if the data has not been generated

It is a little silly to multiply functions like this, but it follows the pattern laid out …. It would be nice if template calls could be sequenced - nesting didn't work for me here.