change cursor type assign resources