added function to showMessage so that message now properly is showing in
singleMessage