added showGrid function and fixed row heights