wrapping and choosing panels in gists