Added contextual history navigation

https://coderwall.com/p/oqtj8w