clear button and listing out order array works inside the modal now