adding check to three view js