Created fragment to handle set switches