add if in view