changes to how message is displayed
Added boolean to function.