added messages model, controller, view