Refactored toolbar sizing to be a method