Fixed tablet portrait and cleaned code for final push.