option for form submit and cal search api