I want to set the build mode depending on which region the pane is added to. How can I do this?