modify flex layout