setting up buttons to work as ajax calls