add formtarget detect

fixes #1071