Implements Toggle switch