Revert "No longer save page on clicks."

This reverts commit 20909a3c8c96e1c1b3e42c1f83801fd597e5086c.
Check window existance before saving