Button actions and transition animation