added possibility for moving upwords and backwords within browser history