Add a statistics panel
Update avatar function