minor ui improvement in cpp code