updates in deletemessage functionality both in client and backend