added loading bar feature

credits to: https://github.com/chieffancypants/angular-loading-bar