Renamed CreateView and added funct