Mui dialog onclose not working