modifications for mobile compatibility