update all the layout. An I noticed a bug: when entering
databases->cat->back->databases, All the categories disappear. I cannot
figure out why.