I have created a button in the sidebar and when the user clicks the button I would like it to run a function that has multiple parameters (these parameters change and are no