updated code to latest polymer