if check the view