added grid toggle, simplified CSS, fixed pixel drag