Activity fixes

Made a few changes so the activity bar will at least run in IE.