I'm going to move this to the Developer's Corner area.
If you permit me to make a suggestion: It would be useful to start out a post like this with a very clear and concise paragraph summarizing what you are wanting, and then go into the much longer story.
I try to make myself do this because I have a tendency to want to explain things in a long drawn out "story" form, and I try to force myself to put an executive summary first, for those who either won't read the whole thing, or will get lost along the way. There is an old suggestion given to speakers "First tell them what you are going to tell them, then tell them, then tell them what you told them."