added check if something's changed before submitting page