added GetViewFunc