trigger save by cliking on a button