detect device page