Made dictionary tree into its own widget