changes in header.jsp and weighted.jsp