add sheet_id to link table, refactor links