added shouldautorotate call for ios6