add log viewer, improve login screen, and fix bugs