add delete button function & alarm box dynamic display