Fix markup

Use flex for ids panels