smarty version of views