updating layout details for mobile