Implemented Switch Component