added attribute on click to updateformindex with inlines, fixed #406