updated message controller

small update to message controller