Working on messages controller. Not done yet