see how it is done by reading this post (link to specifi post in thread): Design Question - #9 by Bobino