Refactor and make post page work properly.
Fix active class bug. Remove useless space.
Merge pull request #1 from xarsh/refactor

Refactor and make post page work properly.