Fixed to reload toolbar using active node in the tree

Fixed to use x_node to reload toolbars when tab is changed on the class node, @temp variable does not exist when change_tab transaction comes in.  This was causing automate to load incorrect toolbar buttons when change tab transaction came in.

https://bugzilla.redhat.com/show_bug.cgi?id=1149791
https://bugzilla.redhat.com/show_bug.cgi?id=1153780
Merge pull request #871 from h-kataria/automate_reload_toolbars_on_tab_change

Fixed to reload toolbar using active node in the tree