Made it actually work on mobile