Using observer pattern to update fragments.