implemented compare page