added posts folder, replaced getPairClass with getGroupClass in form service, code cleanup