using smarty to separete view models from data controling models