refactoring; making it so only one edit is allowed per message