imho, it feels like you're just asking us to finish the code for you, rather then getting us to help you understand a problem you have.

If you aren't, it would be great if you could explain what...