layout refactoring plus refactoring topic/users/posts controller