ViewOptions helper function