History-Aware Reasoning for GUI Agents