fixing broken edit/view links on newly added items