Slight refactor to utilise the record's URI to build the ajax and edit urls