modified flex layout sample