add api for view.get