button type changes