implemented flex box