fixed bbcode click functions