Switch between standalone and embed mode