modified webpage model pre save hook