refactor Smarty_View for extentions