Code for Progressbar & modified some code used for timestamp