change @messages for home view