Refactored modal DOM manipulation to modal_service