remove css transition with react. was not removing stuff when going bakc to history