make input and submit forms work together to create compound forms