forgot to make the dialog reset when you toggle view