restructured data flow and added working core data backed view controller