added some view stuff and messages controller