Modified implementation to update automatically whenever status or progress are updated.
Added quit handler for the application.