working on repainting and acceptance of mouse input