Added basic button state ajax calls.