added 'collapse' class to the dropdown templates to fix the bug where dropdowns don't show when the nav-bar is collapsed