update badge layout