code for emergency prep widget