fixed some display problems