In case you haven't noticed the theme yet, pins are (as you probably know) a very important part of sewing. And they are also one of the most annoying and frustrating things to deal with while sewing as they are hard to keep all in one place. A very easy solution for this is to simply use a magnet. Since pins are made out of metal, this will keep them all together easily.
You can buy pin containers that are metal so that you don't have to worry about them falling everywhere. It also makes picking up any stragglers very easy!