Modified grid widget so page exit dialog still shows.