So, it is now working OK for you? It works fine for me:
I think I've answered/solved well more than your original post:
And even your greatly expanded request here:
So I will leave any further fine-tuning "up to the student as an exercise".
If one of the above posts solves your problem/question as originally stated, please check the "Solved" checkbox (click for details) at the bottom of that post.
Otherwise, please post your remaining questions/issues about this problem.
If you have other questions, please start a new topic.