modfied cursor controll and designe