Change the dropdown placement and alignment to be based on css classes.
Add selected state to toggle buttons.