Added NsUserdefaults,setting up table view