   showSuccess:(domain) ->
     @clearSuggestions()
     form            = @forms["Domain Address"]
-    {domainName, extensionSelect}    = form.inputs
+    {domainName}    = form.inputs
     {suggestionBox} = form.fields
     {close, createButton, cancel, another} = form.buttons
 

      for domain in userDomains
        if not domain.regYears > 0
          domainList.push {title:".#{domain.domain}", value:domain.domain}
      {domains, extensionSelect} = @forms["Domain Address"].inputs
      domains.setSelectOptions domainList
      availableTldList = ["com", "net", "org"]
      extensionsList = ({title:'.'+ext, value:ext} for ext in availableTldList)
      extensionSelect.setSelectOptions extensionsList
      extensionSelect.setDefaultValue availableTldList[0]

  checkAvailability: ->
    form = @forms["Domain Address"]
    domain            = form.inputs.domainName.getValue()
    tld               = form.inputs.extensionSelect.getValue()
    {createButton, checkButton, registerButton} = form.buttons
    unless domain.match(/^\w+$/)
      notifyUser "Please select the extension from the select box"
      checkButton.hideLoader()
      return
    @clearSuggestions()
    KD.remote.api.JDomain.getTldPrice tld, (tldPrice) => 
      KD.remote.api.JDomain.isDomainAvailable domain, tld, (avErr, status, price, suggestions) =>

      # partial : "<b>Thank you!</b><br>Your domain #{domainName.getValue()} has been added to our database. Please go to your provider's website and add a CNAME record mapping to kontrol.in.koding.com."

      # change this part when registering is there.
      partial : "<b>Thank you!</b><br>Your subdomain <strong>#{domainName.getValue()}</strong> has been added to our database. You can dismiss this panel and point your new domain to one of your VMs on the settings screen."
      click   : => @reset()


