So the above code is a bit confusing and my webpage has some remnents from old code that make it confusing so I started a new topic at