editor: tab switching now updates the active pe to the default for that tab