initialize buttons with correct state, send correct state to API