Screen rotation check added