edited messages controller and model, added messages views and index file