Fix LogCat and improve how REPL buttons are toggled