take out the $window service because we don't want to reload the whole page
make the avatar change without a page refresh