States transitions and animations in QML