tried to refactor row buttons