Feature/mode management

maybe generalise as "widget" -> will allow e.g. sidebar to have modes too