updates controller to created message array for client