Fix dialog instance reference, make view source select all on open