use createview and deleteview