Add delete messages functionality and routes improvement