updated table view adapter to deal with grouped style
updated saving records