switched to using yui view and yui model