Added Detection Timeout

Added Detection Timeout and prevent landscape mode