Fixed the buttoms on the history fragment