undo changes done to MessagesController