refactoring delete, actions and comment URLs