generate
changes view
added logic for add button