use flex style for frame