Integrated jsqrcode
Added check for submit flag