small changes to theoretically make the application run in both ios and html