I first saw this done here
but apparently it was done even before that here
. The only difference I made is that I super-glued the magnets to the inside of the canisters rather than hot glue them to the outside. I figured that way I would avoid having magnetic forces weaken the bond between the canister (which is not magnetic) and the magnet.