location entity: refactor pane logic