progress modal functionality