adding auto form element algorithim and autopopulate of select options