only remove old view if it exists
add index.js to repo