updated pin form, and deleted some useless files