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

    @$el.find('button').click (e) =>
      @renderFromUrl $(e.currentTarget).data('new')


@FormPopup.View.init = (popupModel, url) ->
  popupView = new FormPopup.View

    'click .cancel-btn' : 'onReset'

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

