Change a button type