Added button navigation history and functionality.