Removed an unnecessary print statement. Also fixed the bug that was caused by adding a provider that was already added for the view. I just check to see if it is already added and do so if it is not.