Fixes #2. The actionBarButtonItem is inactive also during ajax calls.