made activity drop down in activity form alphabetical;
changed some function names in js file