added flexbox functions