put messages in views