adds progress bar functionality and directive to the app