add screen dected code