import dependency, easier to manage
switch button type