Refactoring table view to retrieve its data from Core Data. Other refactoring regarding to activity view.