added the function of add new avatar and edit avatar