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