remove view if statement