refactored cellForRowAtIndexPath implementation to table view cell