changed button callbacks and ids in the API