Added view type option. Added CreateView
Added UpdateView and DetailView