handle connect frame