fixed b2g device type issues, added compatibility with old UI url structure