updated form to support direct links