handle application cursor mode