adding extra template variables for entry, fid