                      //console.log(data);

                        $("#attachToModal").modal(); 
                    },
                    function(err){
                        console.log(err);
                    }
                );  
            }else{
                DexcaliburAPI.hook.start(
                    {
                        type: type
                    },
                    function(data){
                        location.href = "/pages/probelog.html#autostart"
                    }