fixed code related to name display