add check if anything has changed on the page to reduce number of saves