Animal behaviour and changing environments