add delete has_one relation modal button logic, simplify from DOM element query