display messages in view and input message vc