Added a service to handle opening and closing the modal