DrawProgressBar Function
functionalize Viper xml reader