diffline and sidebar display in condition