implemented message deleting