On the evolution of giant radio halos and their connection with cluster mergers