check for active class, and set accordion accordingly. Expand 2 section automatically on mobile