Added a function helper to display loading messages