Added transition effects when changing state (so far, only state change is from quit button)