adds messaging for the sample page