edit disply logic