use collapsed panel to show resource details

Please  play around with latest 3 commits.
Ah right.