linked posts model to main view controller