State styling changed and updates position when dragged