Fix most of history and slider logic