view must have resource