use flexbox for panel display