stop giving a loose when leaving page