Add submit logic