   renderFromUrl : (url) ->
     $.get url, (html) =>
       @$el.html html
-      @$el.find('form').css
-        top : "#{window.pageYOffset}px"
+      @_updatePosition()
       @delegateEvents()
       @_init()
 

  onClick : (e) ->
    @closePopup() if $(e.target).closest('.simple_form').length is 0

  closePopup : () ->
    @model.destroy()
    @undelegateEvents()

    'click .cancel-btn' : 'onReset'

  initialize : () ->
    @model.on 'show', @onShow
    @model.on 'hide', () =>
      @$el.hide()

