add screen detection