add function isSubmited()