Apply an small refactoring over button creation method