fixed controller forum/index()

and some code in the forum_model