Ported ECSE 426 orientation code, changed display