Hi there Yizuhi,
I created a quick sample app to illustrate a possible solution to your problem. It is a bit crude but I think it might help :)
Here is a link to the page.
If this solves your problem, the OML file is attached.
Let me know if this is not what you were after and I can try and help your further!
Thanks,
Nicholas