Refactored addCommitsToView and created some constants.
Use the correct index for row