Updates styles and adds active list item detection.