Improved autoscrolling, fixed a bug with the logpage