correct modal behavior of save trial dialog
wait message while saving trial