[wip] attempted to implement master-detail view