adding discussion layout and new post, also fixed pagination