added stylus mode for ace