add flags as options in demo page