messages setter getter for activity