added group # for live site group in functions;
fixed bug in formfor activity type