For containers that may be hard to open, I cover them with Saran Wrap before placing the lid. This will help prevent spills when you go to open the container. This works for soups also.
This page contains the following solutions.
When measuring remember, wet foods like oil, milk, and water go in measuring containers that have room to spare at the top. For measuring dry foods such as sugar, flour, and oats, use cups that fill to the top so they can be leveled off.