fix #666 History Manager state not updated when replacing page
fix #45 autocomplete : Issues with autocomplete Expand button

this commit aims to fix a problem inside autocomplete widget with the expand button