Added a viewWillAppear function to reload tableView data.