complete avatar functionality working