adding progressbar and percentage correct functionality