added grouping to output

Added grouping to the output of fancydefinition. Specifically, I used GraphicsGrouping as using the buttons to delve deeper also group, while OutputGrouping does not behave this way.