Better transitioning between states when clicking.