generate views folder; minor changes