solve Pin update problem with regards to styles and location