added a data save to the controller
added show posts logic to app