resource list and show/hide code