added delete function on messages model