add edit bar in viewer