Changed the way lineedits were being made. Still being made dynamically but now in nested ifs as opposed to the for loop