Changing history function
left right redesign complete