add configureButton method