fix display bug for viewer button