make form smarter