added flexbox feature