Improve authentication dialog UI
Fix redundant DOM removal
Clean up double quotes