Added toggle functionality to the AppBarButton