update history when use space handler