refactored didSelecRow method in TaskTableViewController.