move some of the error display utility functions into Utilities.hs from Main.hs