added a custom dialog for the end of the expriment that allows closing only after a certain amount of time has passed