implemented back or forward history
C-n and C-p is mapped to moving tab