added autorotation delegate