add label and flexible spapce bar