Refactored duplicate NewPost dropdown in index.jsp.