Added simple handling for mobile devices