reset and button type