add root view controller
subclass window, add shake detection