How does clicking save call this function?