update badge layout & alarm