Convert select box into switch