aded progressbar, bugs to fix