added some logic for the homepage route to display messages, fixed naming issues with model