Added Sort and basic editing capabilities to table view tab