*reimplemented progressbar and added error Popup