working on the logic between advanced and region panels