moved a lot of logic from UI code to service provider

new regions are now created to match the best existing one in the new
screen

moved a lot of buttons to menus