View::displayMessages() method