rework ui for master detail view