Refactor links to manage records in index views