added delete function, to and from on messages view