updated polymer and fixed deprecated stuff