moves navbar collapsing logic to create_list.js