updated controller to show or save. view updates.