Creating switch button with link and input