use setCursorStyle instead of modifying classes