reorganized sendmsg class

fixed bug preventing send file attachment.
start the work on profile screen