writing logic behind our space data table view controller