adapt buttons