find form[method=dialog] instead of simply form