use class based view for YUI demo.