moved freichat check field further down the chain
added bbcode + restructured code