wip refactor of elements to allow for restyling toggles on layout change