selected platform is now set using javascript