initilaizing smarty