updating after just finding out showDialog has been deprecated