fixed layout and converted to flex