fixed some layout stuff for tty