added dynamic switching between columns, fixed scaling