Refactor app.js
Replace edit button with edit(pencil) icon in edit template
add app_router variable