Bugfix and theme fixes

Fixed the ' bug in post and topic creation and editing also worked a bit
on theme system