optimize display in ff