Small fixes to app.js

Fixed a small bug in linking code. Also added list event