dismiss modal settings on close