pausing on modal close