add api submit method