added device detect conttoller for mobile support