add new flash messages device and refactor old class messages names