updated code causing warning messages when showtitles is set to false; removed old element array builder - everything uses new element form array builder function