Use a right submission for generating last action message

Use separate stings for messages with different types
Fix #223