added code for alt button type