Added some comments and event listeners for the list view in the main activity