Added an additional check to verify which button is pressed before publishing the service