automatically submit valid sets upon click