add back button and arrows in history