changed to grid geometry managment, improved scalebars