moved template fetching to crud