add "total gains" column in UI