fix hbox/vbox layout, changes to shake event.