added group functions

added a HUE variable which holds the latest ajax result