improved sample to use block methods and added progressing field to check if the button is currently progressing