Adding button and progress bar as callback arguments