prevent crash if view is not defined