Standardizing a lot of my code in my gui and container classes