more message handling: function for displaying errors & allow timeout to be determined by calling function (default 5 secound)