Add toggleListView function to the app view