fix mouse code and add sample drawing code