Fix activitypalette to allow run the activity in a browser