adding buttons to change drawing mode, turn grid on/off