ad class on submit