Add unregisterObserver call

Also, move registerObserver call so it will be called in onStartLoading.