Manually added Deren's AWMainViewController code