add api and delete opener in view