refactor set current message