 
     componentWillMount: ->
         current_dialog = @state.dialog
+
+        ui_alarm = (duration=1000)=>
+            @setState {alarm:true}
+            snd.play()
+            disable_alarm = =>
+                @setState {alarm:false}
+            setTimeout disable_alarm, duration
+
         set_inactivity_check()
         set_dialog = (dialog=0)=>
             if dialog == 0


platform = process.platform
is_linux = platform == 'linux'

theme = new Theme
window.theme = theme

                    style: [
                        mixins.rowFlex
                        alignSelf: 'center'

                    ]
                    button.ui
                        label:'yes'
