add orientation

Added ViewController orientation methods.