modify urls and change button type