changed user messages class to a module