Fixed css and made history simpler