worked on cursor control
fixed cursor bug