abstract the progressbar

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>