How to set the Pin Position