Add callback to change cube and measure

+ rename hierachies to hieraRchies